package com.woniu.mealsService.service;

import com.woniu.dto.StoreAppliesDto;
import com.woniu.dto.StoreApplyFileDto;
import com.woniu.exception.meals.StoreException;
import com.woniu.mealsService.model.Store;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.param.InsertStoreParam;
import com.woniu.param.ModifyStoreParam;
import com.woniu.param.StoreOpenTimeParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 店铺表 服务类
 * </p>
 *
 * @author jiang
 * @since 2024年12月09日
 */
public interface StoreService extends IService<Store> {

    String updateHandOrder(Integer status,String userId) throws Exception;

    void selectOpenTimeByStoreId(StoreOpenTimeParam storeOpenTimeParam) throws StoreException;

    void updateAfficheByStoreId(Integer storeId, String newAffiche);

    void insertStore(InsertStoreParam insertStoreParam) throws Exception;

    void modifyTheBasicInformationOfTheStore(ModifyStoreParam modifyStoreParam) throws StoreException, IOException;

    void disStoreByStoreId(Integer storeId);
    // 查询全部店铺
    List<Store> selectAllStore();

    StoreApplyFileDto upLoad(MultipartFile license, MultipartFile permit) throws Exception;

    List<StoreAppliesDto> removeStoreAppliesTime() throws Exception;
}
